<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_Inventory_ColorInstall extends ModuleInstall {

        public function install() {
            try {
                $color_recordset = new Eyeworx_Inventory_Color_RBO_RBOColor();
                $color_recordset->install();
                $color_recordset->add_default_access();
                $color_recordset->set_caption('Color');
            } catch (Exception $e) {
                return false;
            }
            return true;
        }

        public function uninstall() {
            try {
                $color_recordset = new Eyeworx_Inventory_Color_RBO_RBOColor();
                $color_recordset->uninstall();
            } catch (Exception $e) {
                return false;
            }
            return true;
        }

        public function requires($v) {
            return array(
                array('name'=>'Base/Lang','version'=>0),
                array('name'=>'Utils/RecordBrowser','version'=>0),
            );
        }

        public function info() {
            return array(
                'Author'=>'Velicaria, Maureen D.',
                'Description'=>'Color'
            );
        }

        public function version() {
            return array('1.0');
        }

        public function simple_setup() {
            return array('package'=>__('Eyeworx'), 'option'=>__('Color'));
        }

    }
?>